package com.study.choosemaster;

import org.I0Itec.zkclient.ZkClient;

/**
 * Created By gtx on 2017/8/11/19:50
 */
public class ZkClientFactory {
    //mic老师专用
//    private final static String CONNECTSTRING="192.168.11.129:2181,192.168.11.134:2181," +
//            "192.168.11.135:2181,192.168.11.136:2181";

    private final static String CONNECTSTRING="192.168.254.135:2181,192.168.254.136:2181,"
            +"192.168.254.137:2181,192.168.254.138:2181";
    private static final int SESSION_TIME_OUT=5000;

    private static final int CONNECTION_TIME_OUT=5000;

    public static ZkClient getInstance(){
        ZkClient zkClient=new ZkClient(CONNECTSTRING,SESSION_TIME_OUT,CONNECTION_TIME_OUT);
        return zkClient;
    }


}
